using System;
using System.Diagnostics;

namespace Bing
{
    /// <summary>
    /// Contains properties related to an image returned for a request to the Video <see cref="ApiHelper.SourceType"/>.
    /// </summary>
    [DebuggerDisplay("Title: {Title}, PlayUrl: {PlayUrl}")]
    public class VideoResult
    {

        /// <summary>
        /// Gets or sets the title of the image..
        /// </summary>
        /// <value>Returns the title of the image.</value>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the source of the video.
        /// </summary>
        /// <value>Returns the source of the video.</value>
        public string SourceTitle { get; set; }

        /// <summary>
        /// Gets or sets the runtime of the video.
        /// </summary>
        /// <value>Returns the runtime of the video.</value>
        /// <remarks>The RunTime property contains an integer value representing the length, in milliseconds, of the video, if this information is available from the Bing Engine.</remarks>
        public int RunTime { get; set; }

        /// <summary>
        /// Gets or sets the URI of the original video file.
        /// </summary>
        /// <value>Returns the URI of the original video file.</value>
        /// <returns>The PlayUrl property contains a string value representing the URI for the original video file, if this information is available from the Bing Engine.</returns>
        public string PlayUrl { get; set; }

        /// <summary>
        /// Gets or sets the URL for this video from the Bing Video page.
        /// </summary>
        /// <value>You can use the value of the ClickThroughPageUrl property URL to play the original video from the Bing Video page.</value>
        public string ClickThroughPageUrl { get; set; }

        /// <summary>
        /// Gets or sets the Thumbnail class
        /// </summary>
        /// <value>Instantiates the Thumbnail class</value>
        public Thumbnail StaticThumbnail { get; set; }

    }
}